package com.ruoyi.question.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;

/**
 * question对象 express_question
 * 
 * @author pepsi
 * @date 2024-08-28
 */
@Data
public class ExpressQuestion extends ExpressQuestionKind
{
    private static final long serialVersionUID = 1L;

    /** ID，主键，自动增长  */
    private Long id;

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String name;

    /** 客户端 */
    @Excel(name = "客户端")
    private Long client;

    /** 创建时间 */

    private Date createDate;

    /** 问题分类 */
    @Excel(name = "问题分类")
    private String questionType;

    /** 语言 */
    @Excel(name = "语言")
    private Long language;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态（1:正常,2:异常） */
    @Excel(name = "状态", readConverterExp = "1=:正常,2:异常")
    private Long status;

    /** 问题内容 */
    @Excel(name = "问题内容")
    private String context;

    /** 最后修改时间 */
    private Date lastDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setClient(Long client)
    {
        this.client = client;
    }

    public Long getClient()
    {
        return client;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setQuestionType(String questionType) 
    {
        this.questionType = questionType;
    }

    public String getQuestionType() 
    {
        return questionType;
    }

    public Long getLanguage() {
        return language;
    }

    public void setLanguage(Long language) {
        this.language = language;
    }

    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setContext(String context) 
    {
        this.context = context;
    }

    public String getContext() 
    {
        return context;
    }
    public void setLastDate(Date lastDate) 
    {
        this.lastDate = lastDate;
    }

    public Date getLastDate() 
    {
        return lastDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("client", getClient())
            .append("createDate", getCreateDate())
            .append("questionType", getQuestionType())
            .append("language", getLanguage())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("context", getContext())
            .append("lastDate", getLastDate())
            .toString();
    }
}
